<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main"/>
    <title>Szczeguły płatnośći o id: ${fieldValue(bean: payment, field: 'id')}</title>
</head>
<body>
<div class="nav2">
    <span class="menuButton"><g:link class="list" action="list">Lista Płatności</g:link></span>
    <span class="menuButton"><g:link class="create" action="create">Dodaj Nową Płatność</g:link></span>
</div>
<div class="body">
    <h1>Szczeguły płatnośći o id: ${fieldValue(bean: payment, field: 'id')}</h1>
    <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
    </g:if>
    <div class="dialog">
        <table class="main">
            <tbody>
                <tr>
                    <td>
                        <table>
                            <tbody>

                                <tr class="prop">
                                    <td>
                                        <h2>Dane płatności:</h2>
                                    </td>
                                </tr>
                                <tr class="prop">
                                    <td valign="top" class="name">Id:</td>

                                    <td valign="top" class="value">${fieldValue(bean: payment, field: 'id')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Data Faktury:</td>

                                    <td valign="top" class="value">${fieldValue(bean: payment, field: 'dataFaktury')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Data Zaliczki:</td>

                                    <td valign="top" class="value">${fieldValue(bean: payment, field: 'dataZaliczki')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Kwota Platnosci:</td>

                                    <td valign="top" class="value">${fieldValue(bean: payment, field: 'kwotaPlatnosci')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Nr Faktury:</td>

                                    <td valign="top" class="value">${fieldValue(bean: payment, field: 'nrFaktury')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Przedmiot Platnosci:</td>

                                    <td valign="top" class="value">${fieldValue(bean: payment, field: 'przedmiotPlatnosci')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Student:</td>

                                    <td valign="top" class="value"><g:link controller="student" action="show" id="${payment?.student?.id}">${payment?.student?.encodeAsHTML()}</g:link></td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Termin Platnosci:</td>

                                    <td valign="top" class="value">${fieldValue(bean: payment, field: 'terminPlatnosci')}</td>

                                </tr>

                        </table>
                    </td>
                </tr>
            </tbody>
        </table>

        <g:form>
            <input type="hidden" name="id" value="${payment?.id}"/>
            <span class="button"><g:actionSubmit class="edit" action="edit" value="Edytuj" class="icon-button-edit"/></span>
            <span class="button"><g:actionSubmit class="delete" action="delete" onclick="return confirm('Are you sure?');" value="Usuń Konto" class="icon-button-delete"/></span>
        </g:form>

    </div>
</div>
</body>
</html>
